﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace LAVAA.WEB.Models
{
    public class ActivityView
    {
        public ActivityView()
        {
            ActivityTypes = new List<SelectListItem>();

            foreach (var type in new LAVAA.BL.Control.UserCase01().FindActivityTypes())
            {
                ActivityTypes.Add(new SelectListItem() { Text = type.Name, Value = type.Id.ToString() });
            }
        }

        public LAVAA.DAL.Activity Activity { get; set; }
        public List<SelectListItem> ActivityTypes { get; set; }
        public Guid SelectedActivityType { get; set; }

    }

    public class UserView
    {
        public UserView()
        {
            UserGroups = new List<SelectListItem>();

            foreach (var type in new LAVAA.BL.Control.UserGroupFacade().GetAllUserGroups())
            {
                UserGroups.Add(new SelectListItem() { Text = type.Name, Value = type.Id.ToString() });
            }
        }

        public LAVAA.DAL.User User { get; set; }
        public List<SelectListItem> UserGroups { get; set; }
        public Guid SelectedUserGroup { get; set; }

    }
}